package com.ww.springboot.boot.thread.threadlocal;

import java.lang.ref.WeakReference;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2023-02-14 16:48
 */
public class WeakReferenceDemo {

    public static void main(String[] args) {
        WeakReferenceMy weakReferenceMy = new WeakReferenceMy(1);
        System.out.println(weakReferenceMy.get());


    }






    public static class WeakReferenceMy extends WeakReference {


        public WeakReferenceMy(Object referent) {
            super(referent);
        }
    }
}
